package extreme.fizzbuzz;

public class Fizz {
    private final int number;

    public Fizz(int number) {

        this.number = number;
    }

    public String numberOff() {
        if (isDivBySeven() && isDivByFive() && isDivByThree()) {
            return "FizzBuzzWhizz";
        } else if (isDivBySeven() && isDivByFive()) {
            return "BuzzWhizz";
        } else if (isDivBySeven() && isDivByThree()) {
            return "FizzWhizz";
        } else if (isDivByFive() && isDivByThree()) {
            return "FizzBuzz";
        }
        return String.valueOf(number);
    }

    private boolean isDivByFive() {
        return number % 5 == 0;
    }

    private boolean isDivByThree() {
        return number % 3 == 0;
    }

    private boolean isDivBySeven() {
        return number % 7 == 0;
    }
}